<!DOCTYPE html>
<html>
<head>[#include "/common/commonCSS.html"]
</head>
<body class="eh-layout-page">
	<div class="layui-card layui-form">
		<div class="layui-card-header eh-card-header">
			<span> 用户管理 </span>
			<i class="layui-icon layui-icon-refresh refresh-btn"></i>
		</div>
		<div class="layui-row">
			<div class="layui-col-md8">
				<div class="layui-card-body">
					<div class="layui-row">
						<div class="layui-form-pane">
							<form id="userSearchForm">
								<div class="layui-inline">
									<label class="layui-form-label">用户名</label>
									<div class="layui-input-block" style="width: 150px">
										<input type="text" name="userName" placeholder="请输入用户名"
											autocomplete="off" class="layui-input">
									</div>
								</div>
								<div class="layui-inline">
									<label class="layui-form-label">角色</label>
									<div class="layui-input-block" style="width: 150px">
										<select id="roleSelect" name="roleId">
											<option value="">请选择角色</option>
										</select>
									</div>
								</div>
								<div class="layui-inline">
									<label class="layui-form-label">部门</label>
									<div class="layui-input-block" style="width: 180px">
										<ul id="deptTreeSelect" class="dtree" data-id="1"
											name="deptId"></ul>
										<input id="deptId" name="deptId" type="hidden">
									</div>
								</div>
								<div class="layui-inline">
									<label class="layui-form-label">状态</label>
									<div class="layui-input-block" style="width: 150px">
										<select id="userStatusSelect" name="userStatus">
											<option value="">请选择状态</option>
										</select>
									</div>
								</div>
								<div class="layui-inline">
									<button type="button" id="userSearch" class="layui-btn">
										<i class="layui-icon layui-icon-search"></i>
									</button>
								</div>
							</form>
						</div>
						<div class="layui-btn-container">
							<button class="layui-btn" id="userAdd">添加</button>
							<button class="layui-btn" id="resetPwd">重置密码</button>
							<button class="layui-btn" id="export">导出excel</button>
							<button class="layui-btn" id="import">导入excel</button>
						</div>
					</div>
					<div class="eh-table-wrap">
						<table class="layui-hide table-datagrid" id="user-t" 
							lay-filter="user-t" lay-data="{id: 'user-t'}"></table>
					</div>
				</div>
			</div>
			<div class="layui-col-md4">
				<div class="layui-card-body">
					<div class="layui-tab">
						<ul class="layui-tab-title">
							<li class="layui-this">分配角色</li>
							<li>分配机构</li>
						</ul>
						<div class="layui-tab-content" style="margin-top: 4px;">
							<!-- 分配角色 -->
							<div class="layui-tab-item layui-show">
								<div class="layui-btn-container">
									<button class="layui-btn" id="saveUserRole">授权</button>
								</div>
								<div class="eh-table-wrap">
									<table class="layui-hide table-datagrid" id="role-t"
										lay-filter="role-t"></table>
								</div>
							</div>
							<!-- 分配机构 -->
							<div class="layui-tab-item">
								<div class="layui-row">
									<div class="layui-form-pane">
										<div class="layui-inline">
											<label class="layui-form-label">机构</label>
											<div class="layui-input-block">
												<input class="layui-input" type="text" id="deptSearchName">
											</div>
										</div>

										<div class="layui-inline">
											<button type="button" id="deptSearch" class="layui-btn">
												<i class="layui-icon layui-icon-search"></i>
											</button>
											<button class="layui-btn" id="saveUserDept">授权</button>
										</div>
									</div>
								</div>
								<div class="eh-table-wrap">
									<ul id="deptTree" class="dtree" data-id="1" name="parentId"></ul>
								</div>
							</div>

						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

<script type="text/html" id="user-t-tool">
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
	[#include "/common/commonJS.html"] [@common.jsRef
	url="/sys/user/index.js"/]
</body>
</html>